package com.xuhai.blog.common.form;

import com.xuhai.blog.admin.entity.UserEntity;
import lombok.Data;

/**
 * @Author PangJunjie
 * @Date 2022/2/9/009
 */
@Data
public class PasswordForm {
    private Integer userId;
    private String password;
    private String oldPassword;

    public UserEntity toEntity(){
        UserEntity user=new UserEntity();
        user.setPassword(password);
        user.setUserId(userId);
        return user;
    }
}
